package gazzera.utils;

import java.util.*;

public class ListUtils {

	
	
	public static <E> List<E> intersect(List<? extends E> a, List<? extends E> b)
	{
		List<E> res = new ArrayList<E>();
		for (E e : a) 
		{
			if (b.contains(e)) 
			{
				res.add(e);
			}
		}
		return res;
	}
	
}
